package com.victualler.core.config.permission.dto;

import com.victualler.core.config.menu.dto.MenuDto;
import com.victualler.core.config.permission.entity.PermissionInfoDao;
import com.victualler.core.config.permission.entity.RoleInfoDao;
import com.victualler.core.config.permission.entity.UserInfoDao;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Aouthor Guoshichang
 * @Date 17:58 on 2018/7/5.
 * @Function 用户大对象 用户登陆成功后对应
 */
public class UserDto implements Serializable {
    //一条用户信息
    private UserInfoDao userInfoDao;
    //用户对应的角色信息
    private List<RoleInfoDao> roleInfoDaoList;
    //权限列表
    private List<PermissionInfoDao>  permissionInfoList;
    //人员对应菜单列表
    private MenuDto menuDto;

    public UserDto() {
        roleInfoDaoList = new ArrayList<>();
        permissionInfoList = new ArrayList<>();
    }

    public UserInfoDao getUserInfoDao() {
        return userInfoDao;
    }

    public void setUserInfoDao(UserInfoDao userInfoDao) {
        this.userInfoDao = userInfoDao;
    }

    public List<RoleInfoDao> getRoleInfoDaoList() {
        return roleInfoDaoList;
    }

    public void setRoleInfoDaoList(List<RoleInfoDao> roleInfoDaoList) {
        this.roleInfoDaoList = roleInfoDaoList;
    }

    public List<PermissionInfoDao> getPermissionInfoList() {
        return permissionInfoList;
    }

    public void setPermissionInfoList(List<PermissionInfoDao> permissionInfoList) {
        this.permissionInfoList = permissionInfoList;
    }

    public MenuDto getMenuDto() {
        return menuDto;
    }

    public void setMenuDto(MenuDto menuDto) {
        this.menuDto = menuDto;
    }
}
